/*     */ package com.cr.framework.shiro.session;
/*     */ 
/*     */ import com.cr.common.enums.OnlineStatus;
/*     */ import org.apache.commons.lang3.builder.ToStringBuilder;
/*     */ import org.apache.commons.lang3.builder.ToStringStyle;
/*     */ import org.apache.shiro.session.mgt.SimpleSession;
/*     */ 
/*     */ public class OnlineSession extends SimpleSession {
/*     */   private static final long serialVersionUID = 1L;
/*     */   
/*     */   private Long userId;
/*     */   
/*     */   private String loginName;
/*     */   
/*     */   private String deptName;
/*     */   
/*     */   private String avatar;
/*     */   
/*     */   private String host;
/*     */   
/*     */   private String browser;
/*     */   
/*     */   private String os;
/*     */   
/*  39 */   private OnlineStatus status = OnlineStatus.on_line;
/*     */   
/*     */   private transient boolean attributeChanged = false;
/*     */   
/*     */   public String getHost() {
/*  47 */     return this.host;
/*     */   }
/*     */   
/*     */   public void setHost(String host) {
/*  53 */     this.host = host;
/*     */   }
/*     */   
/*     */   public String getBrowser() {
/*  58 */     return this.browser;
/*     */   }
/*     */   
/*     */   public void setBrowser(String browser) {
/*  63 */     this.browser = browser;
/*     */   }
/*     */   
/*     */   public String getOs() {
/*  68 */     return this.os;
/*     */   }
/*     */   
/*     */   public void setOs(String os) {
/*  73 */     this.os = os;
/*     */   }
/*     */   
/*     */   public Long getUserId() {
/*  78 */     return this.userId;
/*     */   }
/*     */   
/*     */   public void setUserId(Long userId) {
/*  83 */     this.userId = userId;
/*     */   }
/*     */   
/*     */   public String getLoginName() {
/*  88 */     return this.loginName;
/*     */   }
/*     */   
/*     */   public void setLoginName(String loginName) {
/*  93 */     this.loginName = loginName;
/*     */   }
/*     */   
/*     */   public String getDeptName() {
/*  98 */     return this.deptName;
/*     */   }
/*     */   
/*     */   public void setDeptName(String deptName) {
/* 103 */     this.deptName = deptName;
/*     */   }
/*     */   
/*     */   public OnlineStatus getStatus() {
/* 108 */     return this.status;
/*     */   }
/*     */   
/*     */   public void setStatus(OnlineStatus status) {
/* 113 */     this.status = status;
/*     */   }
/*     */   
/*     */   public void markAttributeChanged() {
/* 118 */     this.attributeChanged = true;
/*     */   }
/*     */   
/*     */   public void resetAttributeChanged() {
/* 123 */     this.attributeChanged = false;
/*     */   }
/*     */   
/*     */   public boolean isAttributeChanged() {
/* 128 */     return this.attributeChanged;
/*     */   }
/*     */   
/*     */   public String getAvatar() {
/* 132 */     return this.avatar;
/*     */   }
/*     */   
/*     */   public void setAvatar(String avatar) {
/* 136 */     this.avatar = avatar;
/*     */   }
/*     */   
/*     */   public void setAttribute(Object key, Object value) {
/* 142 */     super.setAttribute(key, value);
/*     */   }
/*     */   
/*     */   public Object removeAttribute(Object key) {
/* 148 */     return super.removeAttribute(key);
/*     */   }
/*     */   
/*     */   public String toString() {
/* 153 */     return (new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE))
/* 154 */       .append("userId", getUserId())
/* 155 */       .append("loginName", getLoginName())
/* 156 */       .append("deptName", getDeptName())
/* 157 */       .append("avatar", getAvatar())
/* 158 */       .append("host", getHost())
/* 159 */       .append("browser", getBrowser())
/* 160 */       .append("os", getOs())
/* 161 */       .append("status", getStatus())
/* 162 */       .append("attributeChanged", isAttributeChanged())
/* 163 */       .toString();
/*     */   }
/*     */ }


/* Location:              D:\tmp\creditorRights-admin\BOOT-INF\lib\creditorRights-framework-4.7.0.jar!\com\cr\framework\shiro\session\OnlineSession.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */